package be.bonamis.umpire.ui.server;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;

import be.bonamis.umpire.business.umpire.UmpireHandler;
import be.bonamis.umpire.ui.server.utils.UtilsContextAware;
import be.credoc.common.gwt.actions.server.service.ReflectiveActionServiceServlet;

public class ActionServiceServlet extends ReflectiveActionServiceServlet {

	private static final long serialVersionUID = 1L;

	public ActionServiceServlet() {
		super();
		// addHandler(this);
	}

	@Override
	public void init(ServletConfig config) throws ServletException {
		super.init(config);
		addHandler(UtilsContextAware.getBeanByType(UmpireHandler.class));
	}
}
